package com.txts.road.admin.deviceSys.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.txts.road.admin.common.annotation.Excel;
import com.txts.road.admin.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 车载设备信息对象 vehicle_device
 *
 * @author ruoyi
 * @date 2025-05-15
 */
public class VehicleDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 编码设备 */
    @Excel(name = "编码设备")
    private String deviceCode;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceLeixing;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    public void setDeviceName(String deviceName)
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName()
    {
        return deviceName;
    }

    public void setDeviceCode(String deviceCode)
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode()
    {
        return deviceCode;
    }

    public void setDeviceLeixing(String deviceLeixing)
    {
        this.deviceLeixing = deviceLeixing;
    }

    public String getDeviceLeixing()
    {
        return deviceLeixing;
    }

    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("deviceName", getDeviceName())
                .append("deviceCode", getDeviceCode())
                .append("deviceLeixing", getDeviceLeixing())
                .append("time", getTime())
                .append("remark", getRemark())
                .toString();
    }
}
